package com.example.coupon.service;

import com.example.coupon.dao.MerchantMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MerchantService {

    @Autowired
    private MerchantMapper merchantMapper;

    public String addMerchant(String name, String address){
        Integer result = merchantMapper.insertMerchant(name, address);
        if (result > 0){
            return "添加商家成功";
        }

        return "添加商家失败";
    }
}